import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import giftSend from '@/page/gift_send_one.vue'
import giftShare from '@/page/gift_share.vue'
import giftReceive from '@/page/gift_receive.vue'
import giftReceived from '@/page/gift_received.vue'
import userAddress from '@/page/user_address.vue'

Vue.use(Router)

export default new Router({
    //mode: 'history',
    routes: [{
            path: '/',
            name: 'Hello',
            component: Hello
        },
        {
            path: '/gift/send/:id',
            name: 'gift_send',
            component: giftSend,
        },
        {
            path: '/gift/share/:order_id',
            name: 'gift_share',
            component: giftShare,
        },
        {
            path: '/gift/receive/:gift_id',
            name: 'gift_receive',
            component: giftReceive,
        },
        {
            path: '/gift/received/:gift_id',
            name: 'gift_received',
            component: giftReceived,
        },
        {
            path: '/user/address/:gift_id',
            name: 'user_address',
            component: userAddress,
        }
    ]
})